package com.gpframework.module.sys.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gpframework.module.sys.domain.SysArea;
import com.gpframework.module.sys.mapper.SysAreaMapper;
import com.gpframework.module.sys.service.ISysAreaService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName sysArea
 * @Author gpframework
 * @Date 2023-08-16
 * @Version 1.0.0
 * @Description 区域Service业务层处理
 */
@Service
public class SysAreaServiceImpl extends ServiceImpl<SysAreaMapper, SysArea> implements ISysAreaService {

    /**
     * @Description 查询列表返回VO 用于返回给前端的列表接口
     * @Author gpframework
     * @Date 2023-08-16
     * @Param [lqw]
     * @Return List<sysAreaVo>
     */
    @Override
    public List<SysArea> listVo(QueryWrapper<SysArea> lqw) {
        return this.baseMapper.listVo(lqw);
    }

    /**
     * @Description 通过查询详情VO 用于返回给前端的列详情接口
     * @Author gpframework
     * @Date 2023-08-16
     * @Param [id]
     * @Return sysAreaVo
     */
    @Override
    public SysArea getVoById(Long id) {
        return this.baseMapper.getVo(id);
    }

    /**
     * 获取区域列表
     *
     * @param sysArea
     * @return
     */
    @Override
    public List<SysArea> getAreaList(SysArea sysArea) {
        return this.baseMapper.getAreaList(sysArea);
    }
}
